package com.yanqu.road.server.cmd.marriage.cross;

import com.yanqu.road.pb.common.CommonProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.player.GamePlayerMgr;
import com.yanqu.road.utils.YanQuMessageUtils;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_CROSS_MARRIAGE_GROUP_CHAT_LIST, desc = "拉取跨服联姻分组聊天列表")
public class CrossMarriageGroupChatListCmd extends AbstractCommand {

	@Override
	public boolean parseData(YanQuMessage packet) throws Exception {
		return true;
	}

	@Override
	public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
		//上跨服拉聊天数据
		CommonProto.NullValueMsg.Builder msg = CommonProto.NullValueMsg.newBuilder();
		YanQuMessage pbMsg;
		pbMsg = YanQuMessageUtils.buildMessage(Protocol.C_MARRIAGE_CHAT_LIST, msg);
		GamePlayerMgr.sendPacket(player.getUserId(), pbMsg);
	}

	@Override
	public void sendData(GamePlayer player) {

	}
}
